#!/usr/bin/env python
# encoding: utf-8
'''
@author: 王震
@license: 四川凡狼科技有限公司
@contact: 2668985108@qq.com
@file: resourcesObj.py
@time: 2022/1/16 9:01 下午
@desc:
'''

from marshmallow import Schema, fields


class ResourcesObj(Schema):
    id = fields.String()
    name = fields.String()
    shoe = fields.Integer()
    createTime = fields.DateTime()
    updateTime = fields.DateTime()


class ResourcesLabelObj(Schema):
    id = fields.String()
    name = fields.String()
    shoe = fields.Integer()
    createTime = fields.DateTime()
    updateTime = fields.DateTime()


class ResourcesWork(Schema):
    id = fields.String()
    name = fields.String()
    shoe = fields.Integer()
    createTime = fields.DateTime()
    updateTime = fields.DateTime()
    resourcesTypeId = fields.String()
    imgUrl = fields.String()
    star = fields.Integer()
    describe = fields.String()
    label = fields.String()
    urllib = fields.String()
    collection = fields.Integer()
    fabulous = fields.Integer()
    share = fields.Integer()
    LabelId = fields.String()


class ResourceDetails(ResourcesWork):
    details = fields.String()


class CollectionObj(Schema):
    id = fields.String()
    userId = fields.String()
    resourcesId = fields.String()
